originalString = "Hello, World! "
strippedString = originalString.rstrip()
strippedSpecificChars = originalString.rstrip("! ")
print("Original string:", repr(originalString))
print("Stripped string (whitespace):", repr(strippedString))
print("Stripped string (specific chars '! '):", repr(strippedSpecificChars))
exampleString = "!!!Hello, World!!!"
strippedExclamations = exampleString.rstrip("!")
print("Example string:", repr(exampleString))
print("Stripped string (exclamations):", repr(strippedExclamations))